import request from "@/utils/request";

// 查询所有登录日志
export function getAllLoginInfo() {
    return request({
        url: '/system/api/loginInfo/getAllLoginInfo',
        method: 'get'
    })
}

//条件查询所有的登录日志分页
export const listForPage = (data) => {
    return request({
        url: '/system/api/loginInfo/selectAllLoginInfoByCond',
        method: "POST",
        data
    })
}

// 删除
export function deleteLoginInfoByIds(ids) {
    return request({
        url: `/system/api/loginInfo/deleteLoginInfoByLoginInfoIds/${ids}`,
        method: 'delete'
    })
}

//清空
export function clearLoginInfo() {
    return request({
        url: `/system/api/loginInfo/clearLoginInfo/`,
        method: 'delete'
    })
}